#!/bin/sh /etc/rc.common
# Copyright (C) 2023 ImmortalWrt.org
START=99
USE_PROCD=1

CONF="dahuavto"
PROG="/usr/bin/$CONF"

start_service() {
	procd_open_instance "$CONF"
	procd_set_param command "$PROG"
	procd_set_param respawn
	procd_set_param stderr 1
	procd_close_instance
}

service_triggers() {
	procd_add_reload_trigger "$CONF"
}